<script setup>
import { RouterView, useRouter } from 'vue-router'
import { onMounted } from 'vue'
import { useStore } from '@/store'
const store = useStore()
const router = useRouter()
// import {Elmessage} from 'element-plus'
onMounted(() => {
  store.getStatus()
  window.runtime.EventsOnMultiple('config', (msg) => {
    console.log(msg)
    if (msg == 'config') {
      router.push('/config')
    }else{
      router.push("/")
    }
  },-1)
})

</script>

<template>
  <RouterView />
</template>

<style scoped lang="less">

</style>
